package com.shenchuangit.rydemo.web.system.sequence.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.shenchuangit.rydemo.web.system.sequence.service.ISequenceService;

/**
 * 序列Controller
 *
 * @author liuyu
 * @date 2021-06-10
 */
@RestController
@RequestMapping("/system/sequence")
public class SequenceController extends BaseController {

    @Autowired
    private ISequenceService sequenceService;

    /**
     * 获取序列详细信息
     */
    @GetMapping(value = "/getSerialNumber/{seqName}")
    public AjaxResult getSeq(@PathVariable("seqName") String seqName) {
        return AjaxResult.success(sequenceService.getSerialNumber(seqName));
    }
}
